package com.wyz.rabbitmqconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"sms.direct.queue"})
public class DirectSmsService {

    @RabbitHandler
    public void reviceSmsMessage(String msg){
        System.out.println("sms.direct.queue接收消息：" + msg);
    }
}
